# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=bitwise
pkgver=0.50
pkgrel=1
pkgdesc="Terminal based bit manipulator in ncurses"
url="https://github.com/mellowcandle/bitwise"
arch="all"
license="GPL-3.0-only"
makedepends="
	ncurses-dev
	readline-dev
	"
checkdepends="cunit-dev"
source="https://github.com/mellowcandle/bitwise/releases/download/v$pkgver/bitwise-v$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/bitwise-v$pkgver"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e7849f97802d4c59974ae37e45947b0a0731c8822d678231ff1bfcd9057147575aa550d1506562081566681e859b90b86db7dca848db4d0ed1f7e3e24c9e9dfa  bitwise-v0.50.tar.gz
"
